/*
 * @Author: long
 * @Date: 2021-09-23 16:14:08
 * @LastEditTime: 2021-11-09 14:00:11
 * @LastEditors: Please set LastEditors
 * @Description: denga
 * @FilePath: \workspace\hjimi2\facecloudwebsite\src\api\face-recognition\orderManage.js
 */

import request from '@/utils/request'
const ORDER = 'api/v1/charge/api/'

/**
 * @description: 分页查询订单列表
 */
 export function listOrder(params) {
  return request({ url: `${ORDER}order`, method: 'GET', data: params })
}

export function delOrder(orderNumber) { return request({ url: `${ORDER}orderDetail/${ orderNumber }`, method: 'PUT' }) }

/**
 * @description: 获取订单详情
 */
 export function orderDetail(userId, orderId) {
  return request({ url: `${ORDER}orderDetail/${userId}/${orderId}`, method: 'GET' })
}